<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic"%>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="ebb365,ebb365,ebb365">
	<meta http-equiv="description" content="ebb365">
	<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="/admin/css/css.css">
	<script type="text/javascript">
		function checkForm(){
		  if(document.forms[0].id.value==-1){
		     alert('迁移结点必须选择');
		     return false;
		  }
		  if(document.forms[0].parentId.value==document.forms[0].id.value){
		     alert('选择有误……');
		     return false;
		  }
		  
		  return true;
		}
	</script>
</head>
<body>
	
	<table width="700" border="1" align="center">
		<tr>
			<td align="center">
				<b>首页资讯分类视图</b>
			</td>
			<td align="center">
				<b>具体操作</b>
			</td>
		</tr>
		<tr>
			<td>
				<br/>
				<logic:present name="newsClassTree_left">
					<bean:write name="newsClassTree_left" filter="false" />
				</logic:present>
				<br/><br/>
			</td>
			<td valign="top">
				<html:form
					action="/admin/homeSite/newsClass.do?action=move"
					onsubmit="return checkForm();">
					迁移结点：<html:select property="id" size="1">
						<html:option value="-1">From 节点</html:option>
						<logic:present name="newsClassTree_right">
							<bean:write name="newsClassTree_right" filter="false" />
						</logic:present>
					</html:select>
					<br>
					目标结点：<html:select property="parenId" size="1">
						<html:option value="-1">To 节点</html:option>
						<logic:present name="newsClassTree_right">
							<bean:write name="newsClassTree_right" filter="false" />
						</logic:present>
					</html:select>
					<br>
					<html:submit>&nbsp;确定迁移&nbsp;</html:submit>
				</html:form>
			</td>
		</tr>
	</table>
	<logic:present name="msg">
			<bean:write name="msg" filter="false"/>
		</logic:present>
	
</body>
</html:html>
